<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <p>a</p>
        <div font-size="100px">{{container}}</div>
        <div k-text="container">{{ldq}}</div>
        <div k-html="ldq"></div>
        <button @click="reset">reset(container)</button>
        <input type="text" k-model="container">
        <input type="text" k-model="ldq">
        <p>s</p>
    </div>
    <!-- <script src="./node_modules/vue/dist/vue"></script> -->
    <!-- <script src="./01-reactive.js"></script> -->
    <script src="./kvue.js"></script>
    <script>
        const app = new KVue({
            el: "#app",
            data: {
                container: 1,
                ldq: '<span style="color:red">说：“ldq好帅！” </span>'
            },
            methods: {
                reset(value) {
                    // value = 0
                    this.container = 0
                }
            }
        })
        // setInterval(() => {
        //     app.container++
        //     // console.log(app.container)
        // }, 1000)
    </script>

</body>

</html>